package com.plm.mqshequ.service.impl;

import com.plm.mqshequ.dao.UserRoleDao;
import com.plm.mqshequ.entity.UserRole;
import com.plm.mqshequ.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Limi
 * @create 2019-01-15 11:57
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleDao userRoleDao;

    @Override
    public void add(UserRole userRole) {
        userRoleDao.add(userRole);
    }

    @Override
    public void deleteById(UserRole userRole) {
        userRoleDao.deleteById(userRole);
    }

    @Override
    public void updateById(UserRole userRole) {
        userRoleDao.updateById(userRole);
    }

    @Override
    public void updateByUId(UserRole userRole) {
        userRoleDao.updateByUId(userRole);
    }

    @Override
    public void updateByRId(UserRole userRole) {
        userRoleDao.updateByRId(userRole);
    }

    @Override
    public List<UserRole> query() {
        return userRoleDao.query();
    }

    @Override
    public UserRole queryById(String id) {
        return userRoleDao.queryById(id);
    }

    @Override
    public UserRole queryByUId(String uid) {
        return userRoleDao.queryByUId(uid);
    }

    @Override
    public List<UserRole> queryByRId(String rid) {
        return userRoleDao.queryByRId(rid);
    }
}
